]> dgit.raspbian.org Git - gnome-shell.git/commit
brightnessManager: Handle absence of brightness control in _sync
authorSebastian Wick <sebastian.wick@redhat.com>
Mon, 8 Sep 2025 11:19:21 +0000 (13:19 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Sep 2025 08:28:57 +0000 (08:28 +0000)
commit8a810be11d028b8b5fe6a3b6d196d5048cfb6673
tree737275daadc917469f3658bf6c76d4cf1a00af13
parent897e7376db6924fe920dbe287bd19e77fcf17000
brightnessManager: Handle absence of brightness control in _sync

We already call _sync in response to dimming changes, which might happen
no matter if we actually do have control over the brightness.

Let's just embrace _sync getting called in any situation and handle that
state gracefully by simply returning early. If we re-gain control, _sync
will be called again and the updated state becomes active.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8648
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3864>
js/misc/brightnessManager.js